package com.example.springboot_demo01.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("tb_score")
public class Score {
    @TableId(type= IdType.AUTO)
    private int id;

    @ApiModelProperty("课程id")
    @TableField("course_id")//将注解定义到mysql里命名为course_id的字段中
    private int courseId;

    @ApiModelProperty("学生id")
    @TableField("student_id")//将注解定义到mysql里命名为student_id的字段中
    private int studentId;

    @ApiModelProperty("分数")
    private int point;
}
